package exhaustivity.rivers;

/**
 * @author longzj
 */
class RideState {

    private int[] mPassengers;
    private boolean isBoatAtLeft;
    private RideState mParentState;

    RideState(int leftMonkNum, int rightMonkNum, int leftMonsterNum, int rightMonsterNum, boolean isBoatAtLeft) {
        mPassengers = new int[4];
        mPassengers[0] = leftMonkNum;
        mPassengers[1] = rightMonkNum;
        mPassengers[2] = leftMonsterNum;
        mPassengers[3] = rightMonsterNum;
        this.isBoatAtLeft = isBoatAtLeft;
    }

    int getLeftMonkNum() {
        return mPassengers[0];
    }

    int getRightMonkNum() {
        return mPassengers[1];
    }


    int getLeftMonsterNum() {
        return mPassengers[2];
    }


    int getRightMonsterNum() {
        return mPassengers[3];
    }

    boolean isBoatAtLeft() {
        return isBoatAtLeft;
    }

    RideState getParentState() {
        return mParentState;
    }

    void setParentState(RideState parentState) {
        mParentState = parentState;
    }
}
